package com.cn.xiaonuo.slbfinances.slbagents.controller;

import com.cn.xiaonuo.common.entity.BusinessMessage;
import com.cn.xiaonuo.slbfinances.slbagents.service.IPvTradeService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class HpcTradeController {

    @Resource
    private IPvTradeService pvTradeService;

    @ApiOperation(value = "和平村记录查询--寄存销售推广打款记录", notes = "和平村记录查询--寄存销售推广打款记录")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "startTime", value = "kai", required = true),
            @ApiImplicitParam(name = "endTime", value = "页数", required = true),
            @ApiImplicitParam(name = "pageNo", value = "页数", required = true),
            @ApiImplicitParam(name = "pageSize", value = "长度", required = true)
    })
    @RequestMapping(value = "/api/trade/hitMoneylog", method = RequestMethod.POST)
    public BusinessMessage hitMoneylog(String startTime, String endTime, Integer pageNo, Integer pageSize) {
        return pvTradeService.hitMoneylog(startTime, endTime, pageNo, pageSize);
    }
}
